package org.csu.measure.domain;

/**
 * CK度量返回指标
 */
public class CKMetrics {
    /** function name  方法名*/
    private String name;
    /** Weighted Method per class   类加权方法数*/
    private double WMC;
    /** Response For a Class    类的响应数量*/
    private double RFC;
    /** Depth of Inheritance Tree   继承树的深度*/
    private double DIT;
    /** Number Of Children      子类数量*/
    private double NOC;
    /** Coupling Between Objects       对象间的耦合度*/
    private double CBO;
    /** Lack of Cohesion        类缺乏内聚性*/
    private double LCOM;

    public CKMetrics(String name, double wMC, double rFC, double dIT, double nOC, double cBO, double lCOM ) {
        super();
        this.name = name;
        this.WMC = wMC;
        this.RFC = rFC;
        this.DIT = dIT;
        this.NOC = nOC;
        this.CBO = cBO;
        this.LCOM = lCOM;
    }

    public CKMetrics() {
        super();
        // TODO Auto-generated constructor stub
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWMC() {
        return WMC;
    }

    public void setWMC(double WMC) {
        this.WMC = WMC;
    }

    public double getRFC() {
        return RFC;
    }

    public void setRFC(double RFC) {
        this.RFC = RFC;
    }

    public double getDIT() {
        return DIT;
    }

    public void setDIT(double DIT) {
        this.DIT = DIT;
    }

    public double getNOC() {
        return NOC;
    }

    public void setNOC(double NOC) {
        this.NOC = NOC;
    }

    public double getCBO() {
        return CBO;
    }

    public void setCBO(double CBO) {
        this.CBO = CBO;
    }

    public double getLCOM() {
        return LCOM;
    }

    public void setLCOM(double LCOM) {
        this.LCOM = LCOM;
    }
}
